import {types} from 'mobx-state-tree';

const RefUsersType = types.union(types.number, types.null);
// const UsersType = types.union(types.reference(UserModel), types.null);

const TaskModel = types.model({
    id: types.number,
    title: types.string,
    content: types.string,
    ref_user: RefUsersType,
    status: types.boolean,
    userName: types.optional(types.string, "")
    // user: UsersType,
});

export default TaskModel;
